﻿public class Request_FetchCandidates : RequestBase
{

    public const string NetRequest_UploadBaseInfo_Key = "FetchCandidates";

    public FetchCandidatesRequestData fetchCandidatesReqData = new FetchCandidatesRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return fetchCandidatesReqData;
        }
    }

    public Request_FetchCandidates() : base()
    {
        MessagePacket.key = NetRequest_UploadBaseInfo_Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"发送FetchCandidates请求：{fetchCandidatesReqData.num}");
    }

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_FetchCandidates();
    //}

    public override ResponseData NewResponseData() => new FetchCandidatesResponseData();

}

//public class Response_FetchCandidates : ResponseBase
//{

//    public override ResponseData NewResponseData() => new FetchCandidatesResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Request_FetchCandidates -> Excuate");

//        var loginRequest = this.request as Request_FetchCandidates;

//        if (loginRequest.onResponse != null)
//            loginRequest.onResponse(this);
//    }
//}
